Expand the equation: \begin{align} ∑M_A=Mgx_1-mgx_2 &\cssId{Step1}{=0}\\[3px] &\cssId{Step2}{=m·g·x_1-m·g·x_2}\\[3px] &\cssId{Step3}{M_A·m-m·g(x_1-x_2)=0}\\[3px] &\cssId{Step4}{-m·g(x_1+x_2)=M_A}\\[3px] &\cssId{Step5}{M_A=m·g·d}\\[3px] &\cssId{Step6}{m= \frac{M_A}{g·d}}\\[3px] \end{align}